package com.qiyu.tech.im.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 群聊记录
 *
 * @Author linhao
 * @Date created in 4:02 下午 2021/4/13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_chat_group_record")
public class ChatGroupRecord {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 聊天发起人id
     */
    private Long memberId;

    /**
     * 群聊id
     */
    private Long chatGroupId;

    /**
     * 群聊的内容
     */
    private String chatContent;

    private Date createTime;

    private Date updateTime;

    /**
     * 查询群聊的历史记录sql：
     * select * from t_chat_group_record where
     */
}
